﻿using System;

namespace Frontend.Balancer;

public class BalancerConfiguration
{
    public event EventHandler? Updated;

    public LoadBalancerName LoadBalancerPolicyName { get; private set; } = LoadBalancerName.PickFirst;

    public void Update(LoadBalancerName loadBalancerPolicyName)
    {
        LoadBalancerPolicyName = loadBalancerPolicyName;

        Updated?.Invoke(this, EventArgs.Empty);
    }
}

public enum LoadBalancerName
{
    RoundRobin,
    PickFirst
}
